package de.v1rus777.bukkit;

import org.bukkit.Sound;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerLevelChangeEvent;
import org.bukkit.util.Vector;


public class TestPluginListener implements Listener 
{
	
	@EventHandler
	public void mario(PlayerLevelChangeEvent event)
	{
		if (event.getNewLevel() > event.getOldLevel())
		{
			event.getPlayer().setVelocity(new Vector(0,1,0));
			event.getPlayer().playSound(event.getPlayer().getLocation(), Sound.ENDERMAN_DEATH, 1, 1);
			event.getPlayer().getWorld().strikeLightningEffect(event.getPlayer().getLocation());
		}
	}
	
}